package org.fude.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.fude.entity.Achievement;

public interface AchievementMapper {

	@Insert("insert into "
			+ "achieve(uid,oyear,omonth,odate,money) "
			+ "values(#{user.id},#{oyear},#{omonth},#{odate,jdbcType=TIMESTAMP},#{money}) ")
	public void addAchieve(Achievement a);
	
	@Select("select sum(money) from achieve")
	public int countTotalMoney();
}
